package com.aps.config;

import dev.langchain4j.model.chat.ChatModel;
import dev.langchain4j.model.openai.OpenAiChatModel;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ModelConfig {

    @Bean
    ChatModel chatLanguageModel() {
        ChatModel chatModel = OpenAiChatModel
                .builder()
                .baseUrl("https://api.deepseek.com")
                .apiKey("sk-a1645e74399a48c9a0975a334afb102c")
                .modelName("deepseek-reasoner")
                .build();
        return chatModel;
    }

}
